CKEDITOR.plugins.add('fblike', {
	path : this.path,
	init : function(editor) {
		var pluginName = 'fblike';
/*		editor.addCommand('addLike', {
			exec : function(editor) {
				var msg = 'hello world';
				editor.insertHtml(msg);
			}
		});*/
		editor.addCommand('addLikeDialog', new CKEDITOR.dialogCommand('addLikeDialog'));

		editor.ui.addButton('FBLike', {
			label: 'Add a facebook like',
			command: 'addLikeDialog',
			icon: this.path + '/images/like.ico' 
		});

		CKEDITOR.dialog.add('addLikeDialog', this.path + 'dialogs/addLike.js');
	}
});
